package com.tanhua.model.db;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.reflection.MetaObject;
import org.apache.ibatis.type.StringTypeHandler;
import org.springframework.data.mongodb.core.mapping.Document;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

//选项实体类;
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tb_question_options",autoResultMap = true)//当前实体类对应的数据表名,默认为当前类名首字母小写
public class Options implements Serializable {

    //private static final long serialVersionUID = -3358732836794933873L;

    private Long id;              //选项id

    @TableField(value="content",typeHandler= StringTypeHandler.class)
    private String option;          //选项
    private Long questionId;      //归属id,即该选项属于哪一个题目
    private Integer score;          //该条选项对应的得分;
    private Date created;       //创建时间
    private Date updated;        //修改时间



}